<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.2.2/echarts.min.js"
        integrity="sha512-ivdGNkeO+FTZH5ZoVC4gS4ovGSiWc+6v60/hvHkccaMN2BXchfKdvEZtviy5L4xSpF8NPsfS0EVNSGf+EsUdxA=="
        crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <title>ECharts-Java Demo</title>
</head>

<body>
    <h1>Welcome to ECharts Java</h1>

    
    <div id="display-container" style="height: 600px; width: 600px"></div>
    </div>
    <script>
        let chart = echarts.init(document.getElementById("display-container"));
        let option = {"animation":false,"title":{"left":"center","text":"五大常任理事国GDP统计","textAlign":"auto"},"xAxis":[{"type":"category","data":["中国","美国","俄罗斯","法国","英国"],"boundaryGap":false}],"yAxis":[{"type":"value","name":"万亿美元"}],"legend":{"left":"certer","show":true,"align":"auto","data":["2022年","2023年"]},"series":[{"type":"bar","name":"2023年","data":[19.37,27.36,1.99,3.02,3.34]},{"type":"bar","name":"2022年","data":[17.96,25.44,2.24,2.78,3.09]}]}
        chart.setOption(option);
    </script>
</body>

</html>
